package com.itheima.reggie.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishFlavor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

//Data Transfer Object,数据传输对象
//一般用于展示层与服务层之间的数据传输
/**
 * 表现层
 * 与数据表对应的实体类无法满足业务需要
 * */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DishDto extends Dish {
    private List<DishFlavor> flavors = new ArrayList<>();
    private  String categoryName;
    private Integer copies;

}
